home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
170_01
/
isam.h
< prev
next >
Wrap
Text File
|
1980-01-01
|
1KB
|
43 lines
/*
** ISAMC - Written by John M. Dashner
*/
/*
** ISAMC - Header File
*/
struct isam
{
int q1; /* number of records */
int q2; /* number of deleted records */
int q3; /* number of records in the sorted portion */
int q4; /* current record number */
int q5; /* 0 == sorted; 1 == unsorted */
int q6; /* key length */
int q7; /* file pointer */
};
struct rec1
{
int ttl_recs; /* total recs */
int del_recs; /* deleted recs */
};
struct rec2
{
int srt_recs; /* sorted portion */
unsigned del_ptr; /* points to delete chain */
};
struct rec3
{
unsigned rec_ptr; /* data record ptr */
char idx_key[1]; /* record key */
};
#define MINKEY 2
#define MAXKEY 254
extern int isam_err; /* ISAMC error indicator */